<template>
    <view class="content">

    </view>
</template>

<script lang="ts">
import Vue from 'vue';
import { studentLogin, getHoleList } from '@/api/hole'
import { setToken } from '@/api/auth'
export default Vue.extend({
    data() {
        return {
            holeList: []
        }
    },
    onLoad() {
        studentLogin({
            "stuNum": "4201938322",
            "password": "4201938322"
        }).then((res: any) => {
            setToken(res.token);
            console.log(res);
        })
        getHoleList().then((res: any) => {
            console.log(res);
        })
    },
    methods: {

    }
});
</script>

<style></style>
